//package cn.yu.takeoutbackend.config;
//
//import cn.yu.takeoutbackend.timingModule.employ.EmployAuditJob;
//import org.quartz.*;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class QuartzConfig {
//    @Bean
//    public JobDetail auditScanJobDetail() {
//        return JobBuilder.newJob(EmployAuditJob.class)
//                .withIdentity("auditScanJob")
//                .storeDurably()
//                .build();
//    }
//
//    @Bean
//    public Trigger auditScanJobTrigger() {
//        SimpleScheduleBuilder schedule = SimpleScheduleBuilder.simpleSchedule()
//                .withIntervalInSeconds(10) // 每5分钟执行一次
//                .repeatForever();
//
//        return TriggerBuilder.newTrigger()
//                .forJob(auditScanJobDetail())
//                .withIdentity("auditScanTrigger")
//                .withSchedule(schedule)
//                .build();
//    }
//}
